const express = require('express');
const app = new express();

app.use(express.static('views'))

app.set('view engine', 'ejs');

app.get('/', (req, res, next) => {
  res.render('./pages/index');
})
app.get('/index-1', (req, res, next) => {
  res.render('./pages/index-1');
})

app.listen(8001, () => {
  console.log('service is started. listen to 8000 port. open the following address in the browser.\n  http://127.0.0.1:8001\n')
})